import sun.font.SunFontManager;

/**
 * Created by 春旺 on 2017/3/25.
 */
//**********************************************************************************************************************
// VariableParameters.java        Java Foundations
//
//Demonstrates the use of a  variable  length parameter list.
//**********************************************************************************************************************

public class VariableParameters
{
    //------------------------------------------------------------------------------------------------------------------
    //  Creates two Family object using a constructor that accepts
    //  a variable number of String object as parametera.
    //------------------------------------------------------------------------------------------------------------------
    public static void main(String[] args)
    {
        Family lewis = new Family ("John", "Sharon", "Justin", "Kayla",
                       "Nathan","Saman");
        Family camden = new Family ("Stephen", "Annie","Matt","Mary",
                "Simon", "Lucy", "Ruthie", "sam", "David");

        System.out.println(lewis);
        System.out.println();
        System.out.println(camden);
    }
}
